<!DOCTYPE html>
<admintpl file="header" />
<head>
<meta charset="utf-8">
      <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<style>
.control-group {
  margin-bottom: 10px;
}
label {
    display: block;
    margin-bottom: 5px;
}
label, input, button, select, textarea {
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
}
body  textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
    padding: 6px 6px;
    text-indent: 1px;
    border: 2px solid #dce4ec;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}
.input, select {
  height: 36px !important;
  width: 80%;
}
.box.box-primary {
    border-top-color: #3c8dbc;
}

.box {
    position: relative;
    border-radius: 3px;
    background: #fff;
    border-top: 3px solid #d2d6de;
    margin: 0 auto;
    margin-bottom: 20px;
    /*padding-top: 20px;*/
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
    height: 1050px;
}
.control-group {
    margin-bottom: 10px;
    height: 70px;
}
</style>
</head>

<body class="J_scroll_fixed" style="min-width:800px;">
  <div class="wrap J_check_wrap">
    <form class="J_ajaxForm" action="{:U('PostsAdmin/index')}" method="post">

        <div class=" box box-primary container row">
          <h1>--{$function}--</h1>
          <div class="col-lg-4 col-sm-6   col-md-4 ">
            <div class="control-group">
              <label class="control-label">标题:</label>
                <div class="controls">
                  <input type="text" class="input" name="post_title" value="{$data.post_title}">
                </div>
            </div>
          </div>
          <div class="col-lg-4 col-sm-6  col-md-4 ">
            <div class="control-group">
              <label class="control-label">新闻来源:</label>
                <div class="controls">
                  <input type="text" class="input" name="post_source" value="{$data.post_source}">
                </div>
            </div>
          </div>
          <div class="col-lg-4 col-sm-4   col-md-4 ">
            <div class="control-group">
              <label class="control-label">图片:</label>
                <img src="http://127.0.0.1/stuselect/stuselection/{$data.post_img}" style="width:135px;height:170px;display:inline-block;margin-bottom:15px;">

                <div class="controls">
                  <input type="file" class="input" name="post_img" value="">
                </div>
            </div>
          </div>
          <br><br><br><br>
          <div class="col-lg-4 col-sm-4   col-md-4 ">
            <div class="control-group">
              <label class="control-label">姓名:</label>
                <div class="controls">
                  <input type="text" class="input" name="post_name" value="{$data.post_name}">
                </div>
            </div>
          </div>
          <div class="col-lg-4  col-sm-4   col-md-4 ">
            <div class="control-group">
              <label class="control-label">学校:</label>
                <div class="controls">
                  <input type="text" class="input" name="post_school" value="{$data.post_school}">
                </div>
            </div>
          </div><br><br><br><br>
          <div class="col-lg-4 col-sm-4   col-md-4 ">
            <div class="control-group">
              <label class="control-label">性别:</label>
                <div class="controls">
                  <select name="post_sex" >问题
                    <option value='1'>男</option>
                    <option value='0'>女</option>
                  </select>
                </div>
            </div>
          </div>
          <div class="col-lg-4 col-sm-4   col-md-4 ">
            <div class="control-group">
              <label class="control-label">政治面貌:</label>
                <div class="controls">
                  <select name="post_political">问题
                    <option value='0'>中共党员</option>
                    <option value='1'>共青团员</option>
                    <option value="2">中共预备党员</option>
                    <option value="3">民主党派</option>
                    <option value="4">群众</option>
                    <option value="5">无党派人士</option>
                  </select>
                </div>
            </div>
          </div><br><br><br><br>
          <div class="col-lg-4 col-sm-4   col-md-4 ">
            <div class="control-group">
              <label class="control-label">民族:</label>
                <div class="controls">
                  <input type="text" class="input" name="post_nation" value="">
                </div>
            </div>
          </div>
          <div class="col-lg-4 col-sm-4   col-md-4 ">
            <div class="control-group">
              <label class="control-label">学历:</label>
                <div class="controls">
                  <select name="post_education">
                    <option value='1'>专科生</option>
                    <option value='0' selected="selected">本科生</option>
                    <option value="2">硕士研究生</option>
                    <option value="3">博士研究生</option>
                  </select>
                </div>
            </div>
          </div>
          <div class="col-lg-12 col-sm-12   col-md-12 ">
            <div class="control-group">
              <label class="control-label">内容:</label>
                <div class="controls">
                  <!-- <textarea name="post_content" cols="60" rows="10"></textarea> -->
                  <script id="editor" type="text/plain" style="height:500px;">{$data.post_content}</script>
                </div>
            </div>
          </div>
        </div>


      <div style="text-align: right;width: 80%;margin:0 auto;clear: both;" class="form-actions">
            <input  type="button" class="btn btn-primary btn_submit J_ajax_submit_btn"
            name="button" value="确定">
            <a class="btn" href="{:U('PostsAdmin/index')}">返回</a>
      </div>
    </form>
    <!-- <?php dump($select_data);?> -->
  </div>
</body>
  <script type="text/javascript">
    //编辑器路径定义
    var editorURL = GV.WEB_ROOT;
  </script>
  <script type="text/javascript" src="__PUBLIC__/js/ueditor/ueditor.config.js"></script>
  <script type="text/javascript" src="__PUBLIC__/js/ueditor/ueditor.all.min.js"></script>
<script>
      var ue = UE.getEditor('editor');
</script>
</html>
